<?php
/**
 * Created by PhpStorm.
 * User: chenzhitao
 * Date: 2018/7/28
 * Time: 上午11:34
 */

namespace app\index\model;


use think\Model;

class CompanyStaff extends Model
{
    protected $table = "t_companystaff";
    public static function getCompanyStaff($id){
        $data = self::where('company_id','=',$id)->select();
        foreach ($data as &$item){
            $item['avatar'] = config("app.img_prefix").$item['avatar'];
        }
        return $data;
    }
}